import request from '@/utils/request'

// 招商经理订单
export function getTgyOrder(params) {
  return request({
    url: '/UserActivityApi/tgyOrder',
    method: 'get',
    params
  })
}
// 招商经理订单详情
export function getTgyOrderDetail(params) {
  return request({
    url: '/UserActivityApi/tgyOrderDetail',
    method: 'get',
    params
  })
}
// 供应商商品
export function getSupplierItems(params) {
  return request({
    url: '/SupplierApi/supplierItems',
    method: 'get',
    params
  })
}
// 供应商商品下架
export function supplierItemXiajia(data) {
  return request({
    url: '/SupplierApi/supplierItemXiajia',
    method: 'post',
    data
  })
}
// 供应商商品编辑页面
export function getSupplierAddItem(params) {
  return request({
    url: '/SupplierApi/supplierAddItem',
    method: 'get',
    params
  })
}
// 供应商商品编辑操作
export function supplierAddItemDo(data) {
  return request({
    url: '/SupplierApi/supplierAddItemDo',
    method: 'post',
    data
  })
}

// 供应商收入
export function getSupplierWithdraw(params) {
  return request({
    url: '/UserActivityApi/supplierWithdraw',
    method: 'get',
    params
  })
}
// 提现操作
export function doSupplierWithdraw(data) {
  return request({
    url: '/UserActivityApi/supplierWithdrawDo',
    method: 'post',
    data
  })
}
// 分账明细
export function getSharingList(params) {
  return request({
    url: '/UserServiceApi/ajaxGetSharingList',
    method: 'get',
    params
  })
}
// 提现明细
export function getWithdrawList(params) {
  return request({
    url: '/UserServiceApi/ajaxGetWithdrawList',
    method: 'get',
    params
  })
}
// 余额变动记录
export function getAmountChangeList(params) {
  return request({
    url: '/UserServiceApi/ajaxGetAmountChangeList',
    method: 'get',
    params
  })
}
// 推荐供应商
export function getTgyRecommendSupplier(params) {
  return request({
    url: '/SupplierApi/tgyRecommendSupplier',
    method: 'get',
    params
  })
}

// 供应商订单
export function getListsGys(params) {
  return request({
    url: '/OrderApi/listsGys',
    method: 'get',
    params
  })
}

// 供应商中心
export function getGysCenter(params) {
  return request({
    url: '/UserServiceApi/gys',
    method: 'get',
    params
  })
}
// 获取草稿箱
export function getSupplierItemsDrafts(params) {
  return request({
    url: '/SupplierApi/draftsLst',
    method: 'get',
    params
  })
}
// 删除草稿箱数据
export function deleteDrafts(data) {
  return request({
    url: '/SupplierApi/draftsDel',
    method: 'post',
    data
  })
}
// 提交草稿箱数据
export function submitDrafts(data) {
  return request({
    url: '/SupplierApi/draftsLstSubmit',
    method: 'post',
    data
  })
}
